package com.java.springboot.elasticsearch.common;

/**
 * @author zhangtengfei
 * @date 2021/10/11 15:57
 */

public class RedisKey {

    private static String KEY_USER = "search_mgr_user_%d";

    private static String CACHE_KEY = "search_mgr:%s";

    public static String cacheKeys( String key) {
        return String.format(CACHE_KEY, key);
    }

    public static String keyUser(Integer userId) {
        return String.format(KEY_USER, userId);
    }
}
